Package-level declarations

Types

Link copied to clipboard
data class Block(val text: String, val confidence: Double, val roi: List<PointF>, val lines: List<Line>) : OcrElement, Parcelable

Represents a single block, e.g. a paragraph. A block is made up of lines.

Link copied to clipboard
data class Glyph(val text: String, val confidence: Double, val roi: List<PointF>) : OcrElement, Parcelable

Represents a single glyph, i.e. a character.

Link copied to clipboard
data class Line(val text: String, val confidence: Double, val roi: List<PointF>, val words: List<Word>) : OcrElement, Parcelable

Represents a single line. A line is made up of words.

Link copied to clipboard
sealed class OcrElement : Parcelable

Base class for units of text, e.g. glyphs, words, lines, blocks, pages.

Link copied to clipboard
interface OcrEngine

Interface for OcrEngine API. See class documentation for more details.

Link copied to clipboard
Link copied to clipboard
data class OcrResult(val sandwichedPdfDocument: Document? = null, val sandwichedPdfDocumentFile: File? = null, val ocrPages: List<Page> = listOf())

Represents result of OCR-performing. Optionally contains sandwiched pdf file

Link copied to clipboard
data class Page(val text: String, val confidence: Double, val roi: List<PointF>, val blocks: List<Block>) : OcrElement, Parcelable

Represents result of performing OCR on an image. A page is made up of blocks.

Link copied to clipboard
class ScanbotOcrEngineManager(context: Context, blobManager: BlobManager, sapManager: SapManager, blobStoreStrategy: BlobStoreStrategy, pageFileStorage: PageFileStorage, fileIOProcessor: FileIOProcessor, ocrSettings: OcrSettings, bitmapBinarizer: BitmapBinarizer) : OcrEngineManager

Default implementation of OcrEngine for Scanbot SDK.

Link copied to clipboard
class ScanbotSdkOcrEngine : SelfDisposable, OcrEngine

API for optical character recognition.

Link copied to clipboard
data class Word(val text: String, val confidence: Double, val roi: List<PointF>, val glyphs: List<Glyph>) : OcrElement, Parcelable

Represents a single word. A word is made up of glyphs.